package com.wellsantos.dgwt.client.view;

import com.google.gwt.user.client.ui.Widget;
import com.wellsantos.dgwt.client.view.impl.IViewBase;


public abstract class ViewBase implements IViewBase {


	public static final ViewHandler VIEW_HANDLER = new ViewHandler();
	
	
	public ViewBase(){
	}
	

	public abstract Widget getWidget();
	public abstract String getTitle();
	
	
	public void show(){
		VIEW_HANDLER.showView(this);
	}

	
	public void onShow(){
	}
	
	
	public void onHide(){
	}
	
	
	public boolean isBetterCentered() {
		return false;
	}

}
